package com.changgou.file.util;

import java.io.Serializable;

/***
 * 描述
 * @author ljh
 * @packagename com.changgou.util
 * @version 1.0
 * @date 2019/12/29
 */
public class FastDFSFile implements Serializable {
    //文件名字
    private String name;
    //文件内容
    private byte[] content;
    //文件扩展名
    private String ext;
    // 文件大小
    private String size;
    //文件创建作者
    private String author;
    // 时间戳
    // ......
    //

    public FastDFSFile(String name, byte[] content, String ext, String size, String author) {
        this.name = name;
        this.content = content;
        this.ext = ext;
        this.size = size;
        this.author = author;
    }

    public FastDFSFile(String name, byte[] content, String ext) {
        this.name = name;
        this.content = content;
        this.ext = ext;
    }

    public FastDFSFile() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
